Skip to content

Conversation

r-devulap
Copy link
Member

Support for 32-bit and 64-bit integer types for arrsize: Updated the object_qsort function to accept arrsize as any 32-bit or 64-bit integer type by introducing a new template parameter U. Updated README to reflect these changes.

Fixes #206

Raghuveer Devulapalli added 2 commits May 20, 2025 11:59
- Change arrsize parameter and all related indexing/size variables in
  object_qsort to use a template parameter ArrSize instead of fixed-size
  types.
- Add static_asserts to ensure ArrSize and key_func return type are
  either 32-bit or 64-bit.
- Change the type of the arg vector from uint32_t to ArrSize for
  consistency and correctness.
@r-devulap r-devulap mentioned this pull request May 20, 2025
Copy link
Contributor

@sterrettm2 sterrettm2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall; my only comment is that I don't think the name U is good for the type used for indices, especially as it shows up in the public-facing API. I think it should probably have a more relevant name. Besides that, this looks good to me

@r-devulap r-devulap merged commit 058f913 into numpy:main Jun 17, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

64-bit object_qsort
2 participants